package com.cortex.pineapple.database;

import com.cortex.pineapple.database.DataBase.ACTION;
import com.cortex.pineapple.database.DataBase.OnDataBaseActionStateChangedListener;
import com.cortex.pineapple.database.DataBase.OnDataBaseFinishedReadListener;

public class ActionOnDataBase {

	private ACTION action;
	private Object data;
	private OnDataBaseActionStateChangedListener listener;
	private int top,limit;
	private String query;
	
	public ActionOnDataBase(ACTION action,OnDataBaseActionStateChangedListener listener) {
		this.action = action;
		this.listener = listener;
	}
	public ActionOnDataBase(ACTION action,Object data) {
		this.action = action;
		this.data = data;
	}
	public ActionOnDataBase(ACTION action, Object data,
			OnDataBaseActionStateChangedListener listener) {
		this.action = action;
		this.data = data;
		this.listener = listener;
	}
	
	public ACTION getAction() {
		return action;
	}
	public void setAction(ACTION action) {
		this.action = action;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public OnDataBaseFinishedReadListener getListener() {
		return listener;
	}
	public void setListener(OnDataBaseActionStateChangedListener listener) {
		this.listener = listener;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public int getTop() {
		return top;
	}
	public void setTop(int top) {
		this.top = top;
	}
	public String getQuery() {
		return query;
	}
	public void setQuery(String query) {
		this.query = query;
	}
}
